<%@ page import="com.touzi.constants.DbCons" %>
<%@ page import="org.apache.ibatis.session.SqlSessionFactory" %>
<%@ page import="org.apache.ibatis.session.SqlSession" %>
<%@ page import="com.touzi.mapper.SysconfigMapper" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.util.HashMap" %><%--
  Created by IntelliJ IDEA.
  User: w7851
  Date: 2018/5/24
  Time: 10:15
  To change this template use File | Settings | File Templates.
  appid 对接支付宝
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    SqlSession sqlSession = ((SqlSessionFactory) application.getAttribute(DbCons.DB_FACTORY)).openSession();
    SysconfigMapper sysconfigMapper = sqlSession.getMapper(SysconfigMapper.class);
    String appid = sysconfigMapper.findConfBykey("APPID");
    String app_private_key = sysconfigMapper.findConfBykey("APP_PRIVATE_KEY");
    String alipay_public_key = sysconfigMapper.findConfBykey("ALIPAY_PUBLIC_KEY");
    String ali_noty=sysconfigMapper.findConfBykey("ALI_NOTY");
    sqlSession.close();
%>
<html>
<head>
    <title>Title</title>
    <meta charset="utf-8">
    <style>
        #content {
            margin: 16px auto;
            width: 400px;
        }
    </style>
</head>
<body>
<div id="content">
    <form action="/admdesk" method="post">
        <%--<form>--%>
        <input style="display: none" name="method" value="xiugaizfbcs">
        支付宝回调域名:<br>
        <textarea rows="15" style="width: 100%" spellcheck="false" autocomplete="off" name="alinoty"><%=ali_noty%></textarea><br>
        appid:<br>
        <textarea rows="15" style="width: 100%" spellcheck="false" autocomplete="off" name="appid"><%=appid%></textarea><br>
        app_private_key:<br>
        <textarea rows="40" style="width: 100%" spellcheck="false" autocomplete="off" name="apppri"><%=app_private_key%></textarea><br>
        alipay_public_key:<br>
        <textarea rows="15" style="width: 100%" spellcheck="false" autocomplete="off" name="alipub"><%=alipay_public_key%></textarea><br>
        <input type="submit" value="提交">
    </form>
</div>
</body>
</html>
